class WealthInfo {
  WealthInfo({
    this.userId,
    this.iconUrl,
    this.minIconUrl,
    this.backgroundColor,
    this.levelCode,
    this.levelName,
    this.groupName,
    this.wealthValue,
    this.isInvalid,
    this.topRank,
    this.expansionCount,
  });

  WealthInfo.fromJson(dynamic json) {
    userId = json['userId'];
    iconUrl = json['iconUrl'];
    minIconUrl = json['minIconUrl'];
    backgroundColor = json['backgroundColor'];
    levelCode = json['levelCode'];
    levelName = json['levelName'];
    groupName = json['groupName'];
    wealthValue = json['wealthValue'];
    isInvalid = json['isInvalid'];
    topRank = json['topRank'];
    expansionCount = json['expansionCount'];
  }
  int? userId; // 修改为可空类型
  dynamic iconUrl; // 已经是可空类型，无需修改
  dynamic minIconUrl; // 已经是可空类型，无需修改
  dynamic backgroundColor; // 已经是可空类型，无需修改
  int? levelCode; // 修改为可空类型
  String? levelName; // 修改为可空类型
  String? groupName; // 修改为可空类型
  int? wealthValue; // 修改为可空类型
  bool? isInvalid; // 修改为可空类型
  dynamic topRank; // 已经是可空类型，无需修改
  dynamic expansionCount; // 已经是可空类型，无需修改

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = userId;
    map['iconUrl'] = iconUrl;
    map['minIconUrl'] = minIconUrl;
    map['backgroundColor'] = backgroundColor;
    map['levelCode'] = levelCode;
    map['levelName'] = levelName;
    map['groupName'] = groupName;
    map['wealthValue'] = wealthValue;
    map['isInvalid'] = isInvalid;
    map['topRank'] = topRank;
    map['expansionCount'] = expansionCount;
    return map;
  }
}